﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Person/Person.Master" AutoEventWireup="true"
    CodeBehind="fsywList.aspx.cs" Inherits="ZF.WS.Person.service.fsywList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">


<div class="location   mt10_ mb10_">
        您现在的位置：<a href="/person/index.aspx">会员中心</a> >> <a href="<%=this.Request.Url %>"><%=this.CTitle %></a>
    </div>

 <!--自定义条件 开始-->
    <%-- <div class="tabHeadMenu">
     
        <a href="<%=this.ListPage %>" class='<%=(Type==0)?"action":"" %>'>风水服务</a> <a
        <a href="<%=this.ListPage %>?type=1" class='<%=(Type==1)?"action":"" %>'>风水委托</a>
    </div> --%>
    <!--自定义条件 结束-->

    <div class="tabContainer ">
        <zf:GridView ID="gvList" runat="server" OnSorting="gvListSorting" OnPageIndexChanging="gvListPageChanging">
            <Columns>
                <zf:TemplateField IsKeyField="true" DefaultSortField="true" DefaultSortDirection="Descending"
                    SortExpression="Service.ServiceId">
                    <ItemTemplate>
                        <asp:Label runat="server" ID="KeyLabel" Text='<%# Eval("Service.ServiceId")%>'></asp:Label>
                    </ItemTemplate>
                </zf:TemplateField>
                <zf:TemplateField IsCheckField="true">
                </zf:TemplateField>
                <zf:TemplateField IsSerialNoField="true" Visible="false">
                </zf:TemplateField>
      
      <zf:TemplateField HeaderText="委托内容">
                    <ItemTemplate>
                        <%# string.Concat( Eval("Model.Content")).EmptyString("").MaxLength(20)%>
                    </ItemTemplate>
                </zf:TemplateField>
                <zf:TemplateField HeaderText="联系人">
                    <ItemTemplate>
                        <%# Eval("Service.Contact")%>
                    </ItemTemplate>
                </zf:TemplateField>
                <zf:TemplateField HeaderText="电话">
                    <ItemTemplate>
                        <%# Eval("Service.Tel")%>
                    </ItemTemplate>
                </zf:TemplateField>
                <zf:TemplateField HeaderText="递交时间" SortExpression="Service.AddTime">
                    <ItemTemplate>
                        <%# ((DateTime )Eval("Service.AddTime")).ToShortDateString() %>
                    </ItemTemplate>
                </zf:TemplateField>
               <%-- <zf:TemplateField HeaderText="状态" SortExpression="Service.IsAcc">
                    <ItemTemplate>
                        <span style="<%#((bool)Eval("Service.IsAcc"))?"color:#339900": "color:#f00" %>">
                            <%#((bool)Eval("Service.IsAcc"))?"已确认":"未确认" %>
                        </span>
                    </ItemTemplate>
                </zf:TemplateField>--%>
                <zf:TemplateField HeaderText="操作">
                    <ItemTemplate>
                        <a href='/service/fsywinfo.aspx?id=<%#Eval("Service.ServiceId") %>' target="_blank">查看</a> |
                        <zf:LinkButton ID="LinkButton1" runat="server" OnClick="Delete" CommandArgument='<%#Eval("Service.ServiceId") %>'
                            OnClientClick="return confirm('是否确定要删除此记录');">删除</zf:LinkButton>
                    </ItemTemplate>
                </zf:TemplateField>
            </Columns>
        </zf:GridView>
    </div>
 
<!--自定义按钮 开始-->
    <div class="btnContainer mt10_">
        <span class="fl_ mr10_">
            <input type="checkbox" class="checkAll" bind=".tab" />选中本页显示的所有<%=this.CTitle %></span>
        <zf:LinkButton ID="LinkButton1" runat="server" OnClick="Delete" CommandArgument='select'
            OnClientClick="return confirm('是否确定要删除选中记录');">删除选中的<%=this.CTitle %></zf:LinkButton>
            <a href="/service/fsyw.aspx?p=1" target="_blank">发布风水委托</a>
         
    </div>
    <!--自定义按钮 结束-->
</asp:Content>
